{*?template charset=utf-8?*}
{if is_set($class)|not() }
	{def $class = "text_linked"}
{/if}

{if is_set($image_class)|not() }
	{def $image_class = "small"}
{/if}
{if $attribute.content.relation_list}
{if is_set($render_as_list) }<ul class="relationlist">{/if}
	{foreach $attribute.content.relation_list as $Relations}
		{if $Relations.in_trash|not()}
			{if is_set($render_as_list) }<li>{/if}
    		{node_view_gui view=$class image_class=$image_class content_node=fetch( content, node, hash( node_id, $Relations.node_id ) )}
			{if is_set($render_as_list) }</li>{/if}
		{/if}
	{/foreach}
{if is_set($render_as_list) }</ul>{/if}
{else}
	{'There are no related objects.'|i18n( 'design/standard/content/datatype' )}
{/if}
{undef}